﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Visual/Template/padrao.master" AutoEventWireup="true" CodeFile="ListOrganism.aspx.cs" Inherits="Visual_CRUD_Organism_ListOrganism" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
 <link href="../../../Styles/interfacemetro/css/modern.css" rel="stylesheet" type="text/css" />
    <link href="../../../Styles/interfacemetro/css/modern-responsive.css" rel="stylesheet"
        type="text/css" />
        <link href="../../../Styles/menustyles.css" rel="stylesheet" type="text/css"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="header" Runat="Server">
 <h1>
        Organism List</h1>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ConteudoDinamico" Runat="Server">
 <a class="shortcut" onclick="document.getElementById('advancedsearch').style.display='block';">
        <span class="icon"><i class="icon-search"></i></span>
        <br />
        <span class="label">Search </span></a><a class="shortcut" href="AddOrganism.aspx"><span
            class="icon"><i class="icon-plus"></i></span>
            <br />
            <span class="label">New Organism </span></a>
    <br />
    <div class="table hovered ">
    <br />
        <asp:GridView ID="GridOrganism" runat="server" AllowPaging="True" 
            AllowSorting="True" DataSourceID="DSOrganism" AutoGenerateColumns="False" 
            onselectedindexchanged="deletando">
            <Columns>
                <asp:BoundField DataField="id" HeaderText="ID" SortExpression="id">
                <HeaderStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="name" HeaderText="Name" SortExpression="name">
                <HeaderStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:CommandField ButtonType="Image" SelectImageUrl="~/Visual/Imagens/empty_trash.png" 
                    ShowSelectButton="True" />
            </Columns>
        </asp:GridView>

        <asp:ObjectDataSource ID="DSOrganism" runat="server" SelectMethod="select" 
            TypeName="VSDBM.Code.dao.OrganismDAO">
            <SelectParameters>
                <asp:Parameter DefaultValue=" WHERE status<>0 " Name="filters" Type="String" />
                <asp:Parameter DefaultValue=" " Name="orderby" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>

    </div>
    <div class="message-dialog" id="advancedsearch" style="display: none; background-color: #2d89f0">
        <br />
        <table style="width: 100%;">
            <tr>
                <td class="style1" rowspan="2">
                    <a class="shortcut" onclick="document.getElementById('advancedsearch').style.display='none';">
                        <span class="icon"><i class="icon-cancel"></i></span><span class="label">Close
                        </span></a>
                </td>
                <td class="style2">
                    <asp:Label ID="Label1" runat="server" Text="Label">Search(Name)</asp:Label>
                    <td>
                        &nbsp;
                    </td>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <div class="input-control text">
                        <asp:TextBox ID="txtterm" runat="server" Style="margin-left: 0px" Width="500px"></asp:TextBox>
                        <asp:ImageButton ID="btsearch" runat="server"  onclick="clicksearch" ImageUrl="~/Visual/Imagens/botoes/btbusca.png" />
                    </div>
                    <td>
                    </td>
            </tr>
        </table>
    </div>
</asp:Content>

